<?php
include_once '/var/www/html/new/com.inc.php';
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s= new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));

$endtime=date("Y-m-d",strtotime("+5 day"));//提前五天提醒
$sql="select * from pft_member where dtype=0 and freeendtime='$endtime'";//取出那天注册的商户
$GLOBALS['le']->query($sql);
while($row=$GLOBALS['le']->fetch_assoc()){
    $list[]=$row;
}
foreach($list as $k=>$v){
    $mobile=$v['mobile'];
    //给商户发短信提醒
    $msg='亲爱的用户，您的平台账户试用期将于5天后到期，到期后我们将按协议收费标准收取费用，详询请致电：400-99-22301';
    $s->Send_SMS_V($mobile,$msg,-1);
}


?>